package com.qmx.launcher.constant;

/**
 * @author chengxiangtong
 * @date 2018/10/16
 */
public class ComParamContact {

    public final static class Common {
        public final static String APPID = "appId";
        public final static String ACCESSTOKEN = "accessToken";
        public final static String TIMESTAMP = "timestamp";
        public final static String REFRESH_TOKEN = "refreshToken";
        public final static String SIGN = "sign";
    }

    public final static class Code {
        //http请求成功状态码
        public final static int HTTP_SUCESS = 1;
        //AccessToken错误或已过期
        public static final int ACCESS_TOKEN_EXPIRED = 100010101;
        //RefreshToken错误或已过期
        public static final int REFRESH_TOKEN_EXPIRED = 100010102;
        //帐号在其它手机已登录
        public static final int OTHER_PHONE_LOGINED = 100021006;
        //timestamp过期
        public static final int TIMESTAMP_ERROR = 100010104;
        //缺少授权信息,没有accessToken,应该是没有登录
        public final static int NO_ACCESS_TOKEN = 100010100;
        //签名错误
        public final static int ERROR_SIGN = 100010105;
        //设备未绑定
        public final static int DEVICE_NO_BIND = 100022001;
    }

    public final static class tokenRefresh {
        public final static String PATH = "/token/refresh";
        public final static String TOKEN = "token";

    }

    public final static class tokenCheck {
        public final static String PATH = "/token/check";
        public final static String TOKEN = "token";

    }

    public final static class Login {
        public final static String PATH = "/v1/auth/login";
        public final static String ACCOUNT = "account";
        public final static String PASSWORD = "password";
    }

    public final static class Activate {
        public final static String PATH = "/v1/auth/activate";
        public final static String SN = "sn";
        public final static String SECRET = "secret";
        public final static String CLIENT_VERSION = "client_version";
        public final static String OS_VERSION = "os_version";
    }

    public final static class Upload {
        public final static String PATH = "/tool/upload";
        public final static String FILE = "file";
    }

    public final static class validMobile {
        public final static String PATH = "/valid/mobile";
        public final static String AREA_CODE = "area_code";
        public final static String MOBILE = "mobile";
    }

    public final static class Logout {
        public final static String PATH = "/v1/auth/logout";
        public final static String TOKEN = "token";
    }

    public final static class contactList {
        public final static String PATH = "/v1/client/getDevList";
        public final static String TOKEN = "token";
    }

    public final static class pwdChange {
        public final static String PATH = "/v1/client/pwd/chang";
        public final static String TOKEN = "token";
        public final static String OLD_PWD = "old_pwd";
        public final static String NEW_PWD = "new_pwd";
    }

    public final static class validEmail {
        public final static String PATH = "/valid/email";
        public final static String EMAIL = "email";
    }

    public final static class sendValidCode {
        public final static String PATH = "/sms/send";
        public final static String AREA_CODE = "area_code";
        public final static String MOBILE = "mobile";
        //	(changemobile:换号，changepwd:改密,resetpwd:找密)
        public final static String EVENT = "event";
    }

    public final static class Resetpwd {
        public final static String PATH = "/v1/auth/resetpwd";
        public final static String TOKEN = "token";
        public final static String AREA_CODE = "area_code";
        public final static String MOBILE = "mobile";
        public final static String CAPTCHA = "captcha";
        public final static String PASSWORD = "password";
    }

    public final static class smsCheck {
        public final static String PATH = "/sms/check";
        public final static String AREA_CODE = "area_code";
        public final static String MOBILE = "mobile";
        //	(changemobile:换号，changepwd:改密,resetpwd:找密)
        public final static String EVENT = "event";
        public final static String CAPTCHA = "captcha";
    }


    public final static class Register {
        public final static String PATH = "/v1/auth/register";
        public final static String APP_TYPE = "app_type";
        public final static String AREA_CODE = "area_code";
        public final static String MOBILE = "mobile";
        public final static String EMAIL = "email";
        public final static String NAME = "name";
        public final static String PASSWORD = "password";
    }

    public final static class Sign {
        public final static String PATH = "v1/client/sign";
        public final static String TOKEN = "token";
    }

    /**
     * 预约和修改会议
     * /v1/reserve/meeting/{$id}
     */
    public final static class ReserveMeeting {
        //预约
        public final static String PATH = "/v1/reserve/meeting";
        //修改
        public final static String ID = "/id";
        public final static String TITLE = "title";
        public final static String TOKEN = "token";
        public final static String DETAIL = "detail";
        public final static String UIDS = "uids";
        public final static String MAIN_ID = "main_id";
        public final static String START_TIME = "start_time";
        public final static String END_TIME = "end_time";
        public final static String NOTICE = "notice";
        public final static String __TOKEN__ = "__token__";
    }

    /**
     * 预约和修改直播
     * /v1/reserve/live/{$id}
     * title	是	string	标题
     * detail	是	string	详情
     * start_time	是	int	开始时间
     * end_time	是	int	结束时间
     * address	是	string	地址
     * watch_count	是	int	观看人数（0：不限制，50限制50人）
     * watch_limit[status]	是	int	观看限制（状态）
     * watch_limit[data]	是	string	观看限制（参数）
     * audience_info[name]	是	int	观众须填信息：姓名
     * audience_info[mobile]	是	int	手机号
     * audience_info[email]	是	int	邮箱
     * audience_info[sex]	是	int	性别
     * audience_info[company]	是	int	单位
     * audience_info[position]	是	int	职位
     * text_interaction	是	int	文字互动
     * watch_device[pro]	是	int	观看设备：视频终端
     * watch_device[pc]	是	int	电脑
     * watch_device[app]	是	int	手持应用
     * watch_device[wap]	是	int	H5页面
     * audience	是	string	邀请观众（逗号分隔）
     * auto_record	是	int	自动录制
     * auto_publish	是	int	自动发布回放
     */
    public final static class ReserveLive {
        //预约
        public final static String PATH = "/v1/reserve/live";
        //修改
        public final static String ID = "/id";
        public final static String TITLE = "title";
        public final static String TOKEN = "token";
        public final static String DETAIL = "detail";
        public final static String ADDRESS = "address";
        public final static String START_TIME = "start_time";
        public final static String END_TIME = "end_time";
        public final static String WATCH_COUNT = "watch_count";
        public final static String AUTO_RECORD = "auto_record";
        public final static String AUTO_PUBLISH = "auto_publish";
        public final static String WATCH_LIMIT_STATUS = "watch_limit[status]";
        public final static String WATCH_LIMIT_DATA = "watch_limit[data]";
        public final static String AUDIENCE_INFO = "audience_info";
        public final static String WATCH_DEVICE_PRO = "watch_device[pro]";
        public final static String WATCH_DEVICE_PC = "watch_device[pc]";
        public final static String WATCH_DEVICE_APP = "watch_device[app]";
        public final static String WATCH_DEVICE_WAP = "watch_device[wap]";
        public final static String AUDIENCE_INFO_NAME = "audience_info[name]";
        public final static String AUDIENCE_INFO_MOBILE = "audience_info[mobile]";
        public final static String AUDIENCE_INFO_EMAIL = "audience_info[email]";
        public final static String AUDIENCE_INFO_SEX = "audience_info[sex]";
        public final static String AUDIENCE_INFO_COMPANY = "audience_info[company]";
        public final static String AUDIENCE_INFO_POSITION = "audience_info[position]";
        public final static String TEXT_INTERACTION = "text_interaction";
        public final static String AUDIENCE = "audience";
        public final static String __TOKEN__ = "__token__";
    }

    /**
     * 预约日程列表/
     * 删除预约日程
     */
    public final static class ReserveLists {
        public final static String PATH = "/v1/reserve/lists";
        public final static String TOKEN = "token";
        public final static String DEL = "/v1/reserve/del/";
    }

    /**
     * 加入|发启会议
     * room_id	整型	必填	-	-	会议号
     * client_id	字符串	必填	-	-	消息服务器标识
     * __token__	字符串	必填	-	-	动态令牌
     * mic	整型	非必填	0	-	入会时静音
     * camera	整型	非必填	0	-	入会关闭摄像头
     * password	整型	非必填	0	desc:入会密码	-
     * <p>
     * <p>
     * {100：平台无此会议号 101：请输入密码 102：密码错误 103：方数不足 104：加入成功 104：短线重连}
     */
    public final static class Launch {
        public final static String PATH = "/v1/meeting/launch";
        public final static String TOKEN = "token";
        public final static String ROOM_ID = "room_id";
        public final static String CLIENT_ID = "client_id";
        public final static String MIC = "mic";
        public final static String CAMERA = "camera";
        public final static String PASSWORD = "password";
        public final static String __TOKEN__ = "__token__";
    }

    /**
     * 获取表单令牌(50条)
     */
    public final static class tokenFrom {
        public final static String PATH = "/token/from";
        public final static String TOKEN = "token";
    }

    /**
     * 预约会议进入
     * id	整型	必填	-	-	场次ID
     * client_id	字符串	必填	-	-	消息服务器标识
     * __token__	字符串	必填	-	-	动态令牌
     * password	整型	非必填	0	desc:入会密码
     */
    public final static class Reserve {
        public final static String PATH = "/v1/meeting/reserve";
        public final static String TOKEN = "token";
        public final static String ID = "id";
        public final static String __TOKEN__ = "__token__";
        public final static String CLIENT_ID = "client_id";
        public final static String PASSWORD = "password";
    }

    /**
     * 预约直播进入
     * id	整型	必填	-	-	场次ID
     * client_id	字符串	必填	-	-	消息服务器标识
     * __token__	字符串	必填	-	-	动态令牌
     * password	整型	非必填	0	desc:入会密码
     */
    public final static class Live {
        public final static String PATH = "/v1/meeting/live";
        public final static String TOKEN = "token";
        public final static String ID = "id";
        public final static String __TOKEN__ = "__token__";
        public final static String CLIENT_ID = "client_id";
        public final static String PASSWORD = "password";
    }

    /**
     * 直接进入直播
     */
    public final static class imLive {
        public final static String PATH = "/v1/t_live/imLive";
    }


    /**
     * 会议室缓存信息
     * room_id	整型	必填	-	-	会议号
     */
    public final static class Info {
        public final static String PATH = "/v1/meeting/info";
        public final static String TOKEN = "token";
        public final static String ROOM_ID = "room_id";
    }

    /**
     * 会议中共享图片
     * _token__	字符串	必填	-	-	动态令牌
     * images	file	必填	-	desc:文件流-多图
     * room_id	整型	必填	-	-	会议号
     */
    public final static class Images {
        public final static String PATH = "/v1/meeting/share/images";
        public final static String TOKEN = "token";
        public final static String __TOKEN__ = "__token__";
        public final static String IMAGES = "images";
        public final static String ROOM_ID = "room_id";
    }

    /**
     * 主持会议（场外）
     * _token__	字符串	必填	-	-	动态令牌
     * client_id	是	string	本地IM服务用户标识
     * room_id	否	int	会议室ID
     * type	是	string	主持我的会议：’self’ 主持他人会议：’other’
     * password	否	string	入会密码
     */
    public final static class offMeeting {
        public final static String PATH = "/v1/compere/meeting";
        public final static String TOKEN = "token";
        public final static String __TOKEN__ = "__token__";
        public final static String CLIENT_ID = "client_id";
        public final static String ROOM_ID = "room_id";
        public final static String TYPE = "type";
        public final static String PASSWORD = "password";
    }

}
